package com.fl.conf;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import com.jfinal.weixin.sdk.api.ApiConfigKit;
import com.jfinal.weixin.sdk.cache.DefaultAccessTokenCache;

public class ApplicationStartup  implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
       
    	ApiConfigKit.setAccessTokenCache(new DefaultAccessTokenCache());
		
    }
}
